import fetch from '../request.js'

// 销售清单

// 销售出库
export function saleOutboundList(params) {
	return fetch.request("/pekingFish/app/storageFormalWarehouse/saleOutbound", "GET",params, false, false, true)
}


// 销售出库==》添加到清单-删除-修改销售价
export function editOutboundStatus(params) {
	return fetch.request("/pekingFish/app/storageFormalWarehouse/editOutboundStatus", "POST",params, false, false, true)
}

// 销售出库==》已添加清单列表数据
export function saleList(params) {
	return fetch.request("/pekingFish/app/storageFormalWarehouse/saleList", "POST",params, true, false, false)
}


// 销售出库==》提交
export function saleOutboundSubmit(params) {
	return fetch.request("/pekingFish/app/storageFormalWarehouse/saleOutbound", "POST",params, false, false, false)
}


// 全部清除
export function cleanOutData(params) {
	return fetch.request("/pekingFish/app/storageFormalWarehouse/cleanOutData", "POST",params, false, false, false,false)
}


//仓库==》销售记录 - 退货记录  saleTypeCode: outbound 销售记录, return 退货, damage 报损
export function saleRecordList(params) {
	return fetch.request("/pekingFish/app/storage-sale-record/page", "GET",params, false, false, true)
}

// 销售记录==》单个退货
export function retunSalePrice(params) {
	return fetch.request("/pekingFish/app/storage-sale-record/retunSale", "POST",params, false, false, false)
}



// 商品调拨==》已添加清单列表数据
export function allotSaleList(params) {
	return fetch.request("/pekingFish/app/storageFormalWarehouse/allotSaleList", "POST",params, true, false, false)
}
// 商品调拨==》提交
export function saveAllot(params) {
	return fetch.request("/pekingFish/app/storageFormalWarehouse/saveAllot", "POST",params, false, false, false)
}


// 调拨审核列表
export function allotAuditPageList(params) {
	return fetch.request("/pekingFish/app/storageAllot/allotAuditPageList", "GET",params, true, false, false)
}

// 审核||调拨记录
export function allotAudit(params) {
	return fetch.request("/pekingFish/app/storageAllot/allotAudit/"+params, "POST",'', true, false, false)
}


// 调拨记录
export function transferRecordPage(params) {
	return fetch.request("/pekingFish/app/storageAllot/transferRecordPage", "GET",params, true, false, false)
}


//导出销售清单
export function exportSaleList(params) {
	return fetch.request("/pekingFish/app/storageFormalWarehouse/exportSaleList/"+params, "GET",'', true, false, false,false)
}